import { getReq, postReq } from '@U/common'

// 发送修改密码验证码
export const sendUpdatePwdSms = () => postReq('/api/channel-agent/account/change-password/send-verify-code')
// 验证输入的验证码
export const checkUpdatePwdSms = (code: string) => postReq('/api/channel-agent/account/change-password/check-verify-code', { code })
// 修改密码
export const updatePwd = (newPassword: string) => postReq('/api/channel-agent/modify-password', { newPassword })

// 个人账号 获取个人/工作室待签约数量
export const getPerContractCounts = () => getReq('/api/contract-sign/person/wait-sign-counts')

// 发送修改账号验证码
export const sendUpdateAccountSms = () => postReq('/api/channel-agent/account/modify-account/send-verify-code')

// 验证修改账号验证码
export const checkUpdateAccountSms = (params = {}) => postReq('/api/channel-agent/account/modify-account/check-verify-code', params)

// 发送更换账号验证码
export const sendNewAccountSms = (params = {}) => postReq('/api/channel-agent/account/change-account/send-verify-code', params)
// 验证更换账号验证码
export const checkNewAccountSms = (params = {}) => postReq('/api/channel-agent/account/change-account/check-verify-code', params)

// 修改账号
export const updateAccount = (params = {}) => postReq('/api/channel-agent/modify-account', params)

// 获取智客信息
export const getChannelAgentInfo = () => getReq('/api/channel-agent/info')
